reference integer specifys the channel you want to close. Use the
reference number obtained from the
SP Open Voice function.
line string (255) is a string (max. length 255) which contains the
text you want to convert. It can also contain a
reference to a "STR#“ resource.
phoneme string (255) returns the text passed in the ”line“
parameter as phoneme code.
flags integer which indicates if the embedded speech
commands should be included automatically.
0 phoneme code without embedded commands
1 phoneme code with embedded commands
(other values may be defined with later versions of Speech
Pack, but the currently defined set will always be
compatible)
err integer returns the error which occured.
A value of zero indicates no error occured. See
below for a list of possible errors.
Converts the string you pass using the speech synthesizer of the speech channel you specify into raw phoneme code.
Since the ”phoneme“ parameter will contain up to four times more characters than you put into the “line” parameter you can't pass the maximum number of characters in the ”line“ parameter.
Converting and storing the string beforehand saves memory and time when you use the phoneme code later with SP Voice String or SP Speak String. When the phoneme parameter contains the embedded speech commands you can pass it directly to these two functions.
If you create your own dictionairy of words and their correct phoneme equivalent, email them to me and perhaps I can add them to the dictionary resource.